﻿import request from '/@/utils/request';
enum Api {
	AddCaiJiLog = '/api/caiJiLog/add',
	DeleteCaiJiLog = '/api/caiJiLog/delete',
	UpdateCaiJiLog = '/api/caiJiLog/update',
	PageCaiJiLog = '/api/caiJiLog/page',
	DetailCaiJiLog = '/api/caiJiLog/detail',
}

// 增加采集记录
export const addCaiJiLog = (params?: any) =>
	request({
		url: Api.AddCaiJiLog,
		method: 'post',
		data: params,
	});

// 删除采集记录
export const deleteCaiJiLog = (params?: any) =>
	request({
		url: Api.DeleteCaiJiLog,
		method: 'post',
		data: params,
	});

// 删除采集记录
export const deleteCaiJiLogALL = (params?: any) =>
	request({
		url: '/api/caiJiLog/DeleteAll',
		method: 'post',
		data: params,
	});

// 编辑采集记录
export const updateCaiJiLog = (params?: any) =>
	request({
		url: Api.UpdateCaiJiLog,
		method: 'post',
		data: params,
	});

// 分页查询采集记录
export const pageCaiJiLog = (params?: any) =>
	request({
		url: Api.PageCaiJiLog,
		method: 'post',
		data: params,
	});

// 详情采集记录
export const detailCaiJiLog = (id: any) =>
	request({
		url: Api.DetailCaiJiLog,
		method: 'get',
		data: { id },
	});
